home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Text / Digest-Browser-1.6 Folder / Document / CBrowserDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-16  |  1.0 KB  |  43 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CBrowserDoc.h
  3.  *
  4.  *    Document class for a typical application.
  5.  *
  6.  ****/
  7.  
  8. #define    _H_CBrowserDoc            /* Include this file only once */
  9. #include <CDocument.h>
  10. #include <CApplication.h> 
  11. #include "CDisplayText.h"
  12. #include "CDisplayIndex.h"
  13. #include "Browser.h"
  14.  
  15. struct CBrowserDoc : CDocument {
  16.  
  17.     long index_displayed;
  18.     CDisplayIndex    *itsListIndex;
  19.     CDisplayText    *itsMessage;
  20.  
  21.                 /** Construction **/
  22.     void        IBrowserDoc(CApplication *aSupervisor, Boolean printable);
  23.     void        Dispose();
  24.  
  25.     void        NewFile(void);        // override to do nothing
  26.     void        OpenFile(SFReply *macSFReply);
  27.     void        BuildWindow(BrowserDirPtr dir);
  28.  
  29.     void        DoCommand(long theCommand);
  30.     void        UpdateMenus();
  31.  
  32.     void        SaveTaggedTo(void);
  33.     void        AppendTaggedTo(void);
  34.     void        TagItem(void);
  35.     void        ClearTagged(void);
  36.  
  37.     OSErr        WriteTagged(short fileRef);
  38.     OSErr        DoCopyResource(ResType theType, short theId,
  39.                     short source, short dest);
  40.  
  41. // JRB addition - new method to handle click in grow box if index window
  42.     void AdjustPaneDivider(Point hitPt, Rect *theDragBox);    /* already in CPane coords */
  43. };